function closeDialog(){
	MsgBox.closeActiveDialog();
}
function searchByroleName(){
	roleManaPagination.resetPagination();
	queryRoleInfoListAjax.send();
}
function query(){
	queryRepayRecordListAjax.send();
}
function exportExcel(){
	MsgBox.confirm("确认导出","导出确认",function(){
		exportExcelAjax.send();
	});
}
function exportExcelAll(){
	MsgBox.confirm("确认导出全部","导出确认",function(){
		exportExcelAllAjax.send();
	});
}
function onExportAllSucc(){
	if(data.success == true){
		window.open("sms/queryRepayRecord/exportExcel?pubrepayStatus=01");
	}else{
	new $.zui.Messager('已申请状态数据为空!', {
		type: 'success',
		time: 2000,
		placement:'center'
	}).show();
	}
}
function onExportSucc(data){
	if(data.success == true){
		var loanNo = $("#loanNo").val();
		var customerName = $("#customerName").val();
		var customerIdcard = $("#customerIdcard").val();
		var pubrepayStatus = $("#pubrepayStatus").val();
		var startDate = $("#startDate").val();
		var endDate = $("#endDate").val();
		window.open("sms/queryRepayRecord/exportExcel?loanNo="+loanNo+"&customerName="+customerName+"&customerIdcard="+customerIdcard+"&pubrepayStatus="+pubrepayStatus+"&startDate="+startDate+"&endDate="+endDate);
	}else{
		new $.zui.Messager('导出失败！数据为空!', {
		    type: 'success',
		    time: 2000,
		    placement:'center'
		}).show();
	}
}
